Make ACPI Cx keyhandler always print something
authorKeir Fraser <keir.fraser@citrix.com>
Sun, 2 Aug 2009 11:29:25 +0000 (12:29 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Sun, 2 Aug 2009 11:29:25 +0000 (12:29 +0100)
...so that from a serial log you can tell the difference between not
pressing the key and not having anything interestying to print.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/acpi/cpu_idle.c

index e6d866fb54d3271e4e5e754632915537e362af93..d16bdf1dafb8d6dcf1bcfb55da26b5f28051ac48 100644 (file)
@@ -102,6 +102,7 @@ static void dump_cx(unsigned char key)
 {
     unsigned int cpu;
 
+    printk("'%c' pressed -> printing ACPI Cx structures\n", key);
     for_each_online_cpu ( cpu )
         if (processor_powers[cpu])
             print_acpi_power(cpu, processor_powers[cpu]);
@@ -110,7 +111,7 @@ static void dump_cx(unsigned char key)
 static int __init cpu_idle_key_init(void)
 {
     register_keyhandler(
-        'c', dump_cx,        "dump cx structures");
+        'c', dump_cx,        "dump ACPI Cx structures");
     return 0;
 }
 __initcall(cpu_idle_key_init);